package cn.tedu.resultmapdemo.mapper;


import cn.tedu.resultmapdemo.pojo.Student;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentMapper {

    public List<Student> getStudentAll();

    public int insertStudent();

    public int updateStudent();

    public int deleteStudent();

    public Student getStudentById (Integer id);

    public Student getStufentByName(String name);

    public List<Student> getStudentByIds(Integer minId,Integer maxId);

    public Integer addStudent(Student student);

     List<Student> selectListByBirth(String minBirth,String maxBirth);

      int deleteStudentById(Integer[] ids);

    /**
     * 修改
     * 删除
     * 新增
     * 数据受影响的行数
     * 业务===》成功还是失败
     * 失败会报错
     * 除了失败就是成功
     *  void
     */
      int updateStudentById(Student student);

}
